@import '../style/theme/color';
@import '../style/theme/variables';
@import '../style/mixins/index';
@import './tree.component';

:host {
  display: block;
}

::ng-deep {
  &.devui-tree-node.devui-operable-tree-node {
    .devui-tree-node__checkbox {
      margin-left: 8px;
      margin-right: 5px;
    }

    .devui-tree-icons {
      margin-left: 8px;
      cursor: pointer;
      display: inherit;

      svg {
        #add-path {
          fill: $devui-icon-text;
        }

        #edit-path {
          fill: $devui-icon-text;
        }

        #delete-path {
          fill: $devui-icon-text;
        }

        path,
        rect {
          fill: $devui-icon-text;
        }
      }

      &:hover {
        #add-path {
          fill: $devui-icon-fill-active-hover;
        }

        #edit-path {
          fill: $devui-icon-fill-active-hover;
        }

        #delete-path {
          fill: $devui-icon-fill-active-hover;
        }
      }
    }
  }
}

.devui-form-control {
  outline: none;
}

.devui-tree-indicator {
  height: 1px;
  background-color: $devui-brand;
  position: absolute;
}

.devui-drop-inner {
  color: $devui-brand;
}

.toggle-disabled {
  cursor: not-allowed !important;

  svg.svg-icon rect {
    stroke: $devui-disabled-text !important;
  }

  svg.svg-icon.svg-icon-close rect:last-child {
    stroke: none !important;
    fill: $devui-disabled-text !important;
  }

  svg.svg-icon path {
    fill: $devui-disabled-text !important;
  }
}

.select-disabled {
  color: $devui-disabled-text !important;
  cursor: not-allowed !important;
}

.tree-node-highlight {
  color: $devui-brand;
  font-weight: 600;
}

:host ::ng-deep .devui-tree-node__title d-highlight .devui-match-highlight {
  color: $devui-brand;
  font-weight: bold;
}
